package com.oracle.application.service.impl;

import com.oracle.application.entity.Book;
import com.oracle.application.mapper.BookMapper;
import com.oracle.application.service.IBookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wushaoxiong
 * @since 2021-07-06
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements IBookService {

    @Autowired(required = false)
    private BookMapper bookMapper;
    @Override
    public Book selectBookByName(String bookName) {
        Book book=this.bookMapper.getBookName(bookName);
        return book;
    }
}
